//
//  NotNil.swift
//  test-ios
//
//  Created by wyz5204 on 2023/6/6.
//

import Foundation


class NotNil {
    
    private init() {
        
    }
    
    @inlinable
    static func invoke<T>(_ t : T? , _ block : (T) throws -> Void) rethrows{
        guard let _t = t else {
            return
        }
        try block(_t)
    }
}
